﻿@model FILSTARTUPS_MOBILE.Models.ChangePasswordModel

@{
    ViewBag.Title = "ChangePassword";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>ChangePassword</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("ChangePassword", "Profile", FormMethod.Post)) 
{
    @Html.ValidationSummary(true)
    <fieldset>

        <div class="editor-label">
            @Html.LabelFor(model => model.password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.password)
            @Html.ValidationMessageFor(model => model.password)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.newpassword)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.newpassword)
            @Html.ValidationMessageFor(model => model.newpassword)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.retypenewpassword)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.retypenewpassword)
            @Html.ValidationMessageFor(model => model.retypenewpassword)
        </div>

        <p>
           <div data-role="controlgroup" data-type="horizontal">
            <input type="submit" data-inline=true value="Submit" />
            <a href="Index" data-role="button" >Cancel</a>
            </div>
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
